package com.sc.VenusQueryBeta.model.login;

import com.hengjun.kingstar.sdk.base.BaseModel;
import com.hengjun.kingstar.sdk.helper.RetrofitCreateHelper;
import com.hengjun.kingstar.sdk.helper.RxHelper;
import com.sc.VenusQueryBeta.api.Host;
import com.sc.VenusQueryBeta.api.login.LoginApi;
import com.sc.VenusQueryBeta.contract.login.ForgotPasswordContract;
import com.sc.VenusQueryBeta.model.bean.login.RegisterVerticationBean;

import io.reactivex.Observable;

/**
 * 忘记密码模型
 */

public class ForgotPasswordModel extends BaseModel implements ForgotPasswordContract.IForgotPasswordModel {
    public static ForgotPasswordModel newInstance(){
        return new ForgotPasswordModel();
    }

    @Override
    public Observable<RegisterVerticationBean> getVerticatinCode(String clientUID, String deviceUID, String deviceType, String registerSmsnum, String areaCode, String flag) {
        return RetrofitCreateHelper.createApi(LoginApi.class, Host.HostVGSestMessageserver).getRegisterNumber(clientUID,deviceUID,deviceType,registerSmsnum,areaCode,flag).compose(RxHelper.<RegisterVerticationBean>rxSchedulerHelper());

    }
}
